package com.learn.sb.sblearnshardingjdbc.service.impl;

import com.learn.sb.sblearnshardingjdbc.dao.RoleDao;
import com.learn.sb.sblearnshardingjdbc.pojo.Role;
import com.learn.sb.sblearnshardingjdbc.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoleServiceImpl implements RoleService {

	@Autowired
	private RoleDao roleDao;

	@Override
	public Role getByRoleid(Integer roleId) {
		return roleDao.getByRoleid(roleId);
	}
}
